import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/tServiceproviderInfo',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'api/tServiceproviderInfo/' + id,
    method: 'delete'
  })
}

export function edit(data) {
  return request({
    url: 'api/tServiceproviderInfo',
    method: 'put',
    data
  })
}

export function queryidandname(params) {
  return request({
    url: 'api/tServiceproviderInfo/queryidandname',
    method: 'get',
    params
  })
}
// 审核
export function verify(data) {
  return request({
    url: 'api/tServiceproviderInfo/verify',
    method: 'post',
    data
  })
}
// 重置邀请码
export function resetinvitecode(data) {
  return request({
    url: 'api/tServiceproviderInfo/resetinvitecode',
    method: 'post',
    data
  })
}
